package com.neusoft.elm.po;

import java.util.ArrayList;
import java.util.List;

public class Orders {
    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getBusinessId() {
        return businessId;
    }

    public void setBusinessId(Integer businessId) {
        this.businessId = businessId;
    }

    public String getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(String orderDate) {
        this.orderDate = orderDate;
    }

    public Double getOrderTotal() {
        return orderTotal;
    }

    public void setOrderTotal(Double orderTotal) {
        this.orderTotal = orderTotal;
    }

    public Integer getDaId() {
        return daId;
    }

    public void setDaId(Integer daId) {
        this.daId = daId;
    }

    public Integer getOrderState() {
        return orderState;
    }

    public void setOrderState(Integer orderState) {
        this.orderState = orderState;
    }

    public Business getBusiness() {
        return business;
    }

    public void setBusiness(Business business) {
        this.business = business;
    }

    public List<OrderDetailet> getOdList() {
        return odList;
    }

    public void setOdList(List<OrderDetailet> odList) {
        this.odList = odList;
    }

    private Integer orderId;
    private String userId;
    private Integer businessId;
    private String orderDate;
    private Double orderTotal;
    private Integer daId;         //送货地址编号
    private Integer orderState;   //订单状态（0：未支付； 1：已支付）
    //多对一：所属商家
    private Business business = new Business();
    //一对多：某订单下的订单明细
    private List<OrderDetailet> odList = new ArrayList<>();
    //get、set ... ...

public Orders() {}
    public Orders(Integer orderId, String userId,Integer businessId, String orderDate, Double orderTotal, Integer daId, Integer orderState) {
    this.orderId = orderId;
    this.userId = userId;
    this.businessId = businessId;
    this.orderDate = orderDate;
    this.orderTotal = orderTotal;
    this.daId = daId;
    this.orderState=orderState;
    this.business = new Business();
    this.odList = new ArrayList<>();
    this.userId=userId;

    }

}